﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MathService.DSP
{
	public static class Filtration
	{
		public static double[] KIH(double[] X, double[] h)
		{
			var lv_Y = new double[X.Length];

			var i_Length = lv_Y.Length;
			for(var i = 0; i < i_Length; i++, lv_Y[i] = 0)
			{
				var n_Length = h.Length;
				for(var n = 0; n < n_Length && i + n < i_Length; n++)
					lv_Y[i] += X[i + n] * h[n];
			}

			return lv_Y;
		}

		public static double[] BIH(double[] X, double[] a, double[] b)
		{
			//var lv_Y = new double[X.Length];

			throw new NotImplementedException();

			//return lv_Y;
		}
	}
}
